﻿<phone:PhoneApplicationPage
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
	xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
	x:Class="WP7NumberOnlyKeyBoard.MainPage"
	FontFamily="{StaticResource PhoneFontFamilyNormal}"
	FontSize="{StaticResource PhoneFontSizeNormal}"
	Foreground="{StaticResource PhoneForegroundBrush}"
	SupportedOrientations="Portrait" Orientation="Portrait"
	shell:SystemTray.IsVisible="True">

	<!--LayoutRoot is the root grid where all page content is placed-->
	<Grid x:Name="LayoutRoot">
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="270"/>
			<RowDefinition/>
		</Grid.RowDefinitions>
		
		<!--TitlePanel contains the name of the application and page title-->
		<StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
			<TextBlock x:Name="ApplicationTitle" Text="Password Box" Style="{StaticResource PhoneTextNormalStyle}"/>
			<TextBlock x:Name="PageTitle" Text="Enter password" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
		</StackPanel>

		<!--ContentPanel - place additional content here-->
		<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
			<Grid.RowDefinitions>
				<RowDefinition Height="250"/>
				<RowDefinition/>
			</Grid.RowDefinitions>
			<StackPanel Orientation="Vertical" VerticalAlignment="Top">
				<TextBlock x:Name="txtBlkPassBoxHeading" TextWrapping="Wrap" Text="enter password (six digits)" Height="26.6033325195312" Margin="10,0,0,0"/>
				<PasswordBox x:Name="passBox"/>
			</StackPanel>
		</Grid>
		<Grid x:Name="grdDialer" Grid.Row="2" Background="{StaticResource DialerBackGroundColor}">
			<Grid.RowDefinitions>
				<RowDefinition/>
				<RowDefinition/>
				<RowDefinition/>
				<RowDefinition/>
			</Grid.RowDefinitions>
			<Grid.ColumnDefinitions>
				<ColumnDefinition/>
				<ColumnDefinition/>
				<ColumnDefinition/>
			</Grid.ColumnDefinitions>
			<Button x:Name="btnDialer_1" Content="1" Click="btnDialer_1_Click" Style="{StaticResource DialerBtnTemplate}"/>
			<Button x:Name="btnDialer_2" Grid.Column="1" Content="2" Click="btnDialer_2_Click" Style="{StaticResource DialerBtnTemplate}"/>
			<Button x:Name="btnDialer_3" Grid.Column="2" Content="3" Click="btnDialer_3_Click" Style="{StaticResource DialerBtnTemplate}"/>
			<Button x:Name="btnDialer_4" Grid.Row="1" Content="4" Click="btnDialer_4_Click" Style="{StaticResource DialerBtnTemplate}"/>
			<Button x:Name="btnDialer_5" Grid.Row="1" Grid.Column="1" Content="5" Click="btnDialer_5_Click" Style="{StaticResource DialerBtnTemplate}"/>
			<Button x:Name="btnDialer_6" Grid.Row="1" Grid.Column="2" Content="6" Click="btnDialer_6_Click" Style="{StaticResource DialerBtnTemplate}"/>
			<Button x:Name="btnDialer_7" Grid.Row="2" Content="7" Click="btnDialer_7_Click" Style="{StaticResource DialerBtnTemplate}"/>
			<Button x:Name="btnDialer_8" Grid.Row="2" Grid.Column="1" Content="8" Click="btnDialer_8_Click" Style="{StaticResource DialerBtnTemplate}"/>
			<Button x:Name="btnDialer_9" Grid.Row="2" Grid.Column="2" Content="9" Click="btnDialer_9_Click" Style="{StaticResource DialerBtnTemplate}"/>
			<Button x:Name="btnDialer_ClearAll" Grid.Row="3" Content="clear" Click="btnDialer_ClearAll_Click" Style="{StaticResource DialerBtnTemplate}"/>
			<Button x:Name="btnDialer_0" Grid.Row="3" Grid.Column="1" Content="0" Click="btnDialer_0_Click" Style="{StaticResource DialerBtnTemplate}"/>
			<Button x:Name="btnDialer_Back" Grid.Row="3" Grid.Column="2" Content="del" Click="btnDialer_Back_Click" Style="{StaticResource DialerBtnTemplate}"/>
		</Grid>
	</Grid>
</phone:PhoneApplicationPage>